#{extends 'frame.html' /} #{set title:'流量记录管理' /} #{set 'moreStyles'}
<link rel="stylesheet" media="screen"
	href="@{'/public/stylesheets/admin/trafficRecord.css'}" />
<link rel="stylesheet" media="screen"
	href="@{'/public/stylesheets/jquery.pagination.css'}" />
<link rel="stylesheet" media="screen" href="@{'/public/stylesheets/datePicker.css'}" />
#{/set}

<div class="contentCard">
	<div class="contentTitle">流量记录列表</div>
	<div id="taskFilterPanel">
		<div class="clearfix mb10"> <span class="floatLeft mr10">关键词</span>
			<input type="text" id="kwd" class="inputText floatLeft mr10" /> 
			<span class="floatLeft mr10">开始时间</span>
					<span class="floatLeft mr10 cal-date-input">
						<input class="inputDate start-date" id="modifyTimeStart" readonly="readonly" value=""  />
					</span>
					<span class="floatLeft mr10 med-cal-split">-</span>
					<span class="floatLeft mr10 cal-date-input">
						<input class="inputDate end-date" id="modifyTimeEnd" readonly="readonly" value="" />
					</span>
			<a class="stdColorButton floatLeft addTrafficBtn"
				href="javascript:;" id="queryBtn">查询</a>
				<a class="stdColorButton floatLeft ml20"
				href="javascript:;" id="allFolwBtn">批量确认完成</a>
		</div>
	</div>
	<div class="mt10">
		<table class="normTable">
			<thead>
				<tr>
					<td style="width: 20px;"><input type="checkbox" id="checkAll"></td>
					<td>任务ID</td>
					<td>店铺类型</td>
					<td>任务类型</td>
					<td>宝贝ID</td>
					<td>关键词</td>
					<td>计划点击</td>
					<td>完成点击</td>
					<td>每日开始时间</td>
					<td>每日结束时间</td>
					<td>开始日期</td>
					<td>截止日期</td>
					<td>状态</td>
					<td style="width: 200px">操作</td>
				</tr>
			</thead>
			<tbody id="trafficContainer"></tbody>
		</table>
		<div id="noMsg">
			<div class="warnBox">
				<span class="iconfont">&#xf00b6;</span> 没有记录!
			</div>
		</div>
		<div class="pagin-btm clearFix" style="display: none;">
			<div class="pagination"></div>
		</div>
		<div class="popWrapper" style="display: none;" id="tr_loading_mask">
			<div class="maskLayer"></div>
			<img class="tr_juhua" src="@{'/public/images/pre_loading.gif'}" />
		</div>
	</div>
</div>

<textarea class="muban" id="trafficTemp">
	{{#results}}
				<tr data-id="{{id}}">
					<td ><input type="checkbox" class="checkFlow"></td>
					<td>{{id}}</td>
					<td>{{shopTypeStr}}</td>
					<td>{{typeStr}}</td>
					<td>{{nid}}</td>
					<td>{{kwd}}</td>
					<td>{{times}}</td>
					<td>{{returnTimes}}</td>
					<td>{{clickStart}}</td>
					<td>{{clickEnd}}</td>
					<td>{{beginTime}}</td>
					<td>{{endTime}}</td>
					<td>{{statusStr}}</td>
					<td><a class="stdColorButton floatLeft finishedBtn"
				href="javascript:;" id="finishedBtn" style="line-height: 20px;">点击完成</a><a class="stdColorButton floatLeft notFindBtn ml20"
				href="javascript:;" id="notFindBtn" style="line-height: 20px;">找不到</a></td>
				</tr>
	{{/results}}
</textarea>
#{set 'moreScripts'}
<script src="@{'/public/javascripts/date.js'}" type="text/javascript"></script>
<script src="@{'/public/javascripts/jquery.datePicker.js'}" type="text/javascript"></script>
<script src="@{'/public/javascripts/jquery.pagination.js'}"
	type="text/javascript"></script>
<script src="@{'/public/javascripts/mustache.min.js'}"
	type="text/javascript"></script>
<script src="@{'/public/javascripts/admin/flowProcess.js'}"
	type="text/javascript"></script>
<script type="text/javascript">
	App.module = 'process';
</script>
#{/set}
